package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.Danmu;
import com.sk.bilibili.bean.FollowThem;
import com.sk.bilibili.dto.Page;
import com.sk.bilibili.dto.Res;
import com.sk.bilibili.other.JsonMap;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

@Mapper
public interface FollowThemMapper {

    @POST("followThem/getFollowThem")
    Observable<Res<Page<FollowThem>>> getFollowThem(@Body JsonMap map);

    @POST("followThem/add")
    Observable<Res<Void>> add(@Body JsonMap map);

    @GET("followThem/updateState")
    Observable<Res<Void>> updateState(@Query("id") Integer id,@Query("state") Integer state);

}